package collection;

import java.util.ArrayList;
import java.util.List;

public class SorString {
    public static void main(String[] args) {
        List<String> list=new ArrayList<>();
        list.add("we");



    }

    public int compare(String o1,String o2){
        return o1.length()-o2.length();//升序
        //return o2.length()-o1.length();//降序

    }
}
